package com.example.entity;

import java.util.Date;

public class PurchaseRecord {
    private int customerId;
    private int guitarId;
    private double price;
    private Date purchaseTime;
    
    // 用于显示的额外字段
    private String customerName;
    private String guitarBrand;
    
    public PurchaseRecord() {}
    
    public PurchaseRecord(int customerId, int guitarId, double price, Date purchaseTime) {
        this.customerId = customerId;
        this.guitarId = guitarId;
        this.price = price;
        this.purchaseTime = purchaseTime;
    }
    
    // Getter和Setter方法
    public int getCustomerId() {
        return customerId;
    }
    
    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }
    
    public int getGuitarId() {
        return guitarId;
    }
    
    public void setGuitarId(int guitarId) {
        this.guitarId = guitarId;
    }
    
    public double getPrice() {
        return price;
    }
    
    public void setPrice(double price) {
        this.price = price;
    }
    
    public Date getPurchaseTime() {
        return purchaseTime;
    }
    
    public void setPurchaseTime(Date purchaseTime) {
        this.purchaseTime = purchaseTime;
    }
    
    public String getCustomerName() {
        return customerName;
    }
    
    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }
    
    public String getGuitarBrand() {
        return guitarBrand;
    }
    
    public void setGuitarBrand(String guitarBrand) {
        this.guitarBrand = guitarBrand;
    }
} 